<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>WEB服务器缓存</title>
    <script src="/system/common/libs/js/jquery.min.js"></script>
    <style>
        body {
            color: #666;
            text-align: center;
            font-family: Helvetica, 'microsoft yahei', Arial, sans-serif;
            width: 800px;
            margin: auto;
            font-size: 14px;
        }
        h1 {
            font-size: 56px;
            line-height: 100px;
            font-weight: normal;
            color: #456;
        }
        h2 { font-size: 24px; color: #666; line-height: 1.5em; }
        h3 {
            color: #456;
            font-size: 20px;
            font-weight: normal;
            line-height: 28px;
        }
        hr {
            margin: 18px 0;
            border: 0;
            border-top: 1px solid #EEE;
            border-bottom: 1px solid white;
        }
        a{color: #17bc9b;text-decoration: none;}
    </style>
</head>

<body>
<h1>WEB服务器缓存清理</h1>
<h3>清理WEB服务器的所有缓存.</h3>
<hr/>
<p>如果要清理WEB服务器的缓存， <a href="javascript:clean()">点击这里</a> 清除缓存.</p>
</body>
<script language="JavaScript">
    function clean() {
        jQuery.ajax({url:'/public/cleancache.do',dataType:'json',
            success:function (res) {
                if (res.status == "1") {
                    alert("清理完成！");
                }else{
                    alert("清理失败，请稍后重试！");
                }
            }});
    }
</script>
</html>
